9.1
CRITICAL CVSS 3.1
CVE-2026-6556
@fastify/express vulnerable to middleware bypass via non-string mount paths in prefixed plugins
Description

@fastify/express versions 4.0.6 and earlier only rewrite the plugin prefix for middleware mount paths when the path argument is a string. Non-string mount paths (arrays of paths and regular expressions) are left unprefixed inside prefixed plugin scopes, so middleware registered with those forms does not match the actual prefixed request path. Applications that use path-scoped middleware for authentication, authorization, rate limiting, or auditing on routes inside a prefixed scope can be bypassed by sending a request to the prefixed route, because Fastify still matches the route but the middleware is skipped. Patches: upgrade to @fastify/express 4.0.7. Workarounds: use string mount paths instead of arrays or regular expressions in prefixed plugins, or register one use call per path.

INFO

Published Date :

June 30, 2026, 12:48 p.m.

Last Modified :

June 30, 2026, 12:48 p.m.

Remotely Exploit :

No

Source :

openjs
Affected Products

The following products are affected by CVE-2026-6556 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL ce714d77-add3-4f53-aff5-83d477b104bb
Solution
Upgrade @fastify/express to version 4.0.7 to fix path handling for prefixed plugins.
  • Upgrade @fastify/express to 4.0.7 or later.
  • Use string mount paths instead of arrays/regex.
  • Register one 'use' call per path if needed.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-6556 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.